package com.zlx.mall.basic.datasource.generator;

import java.util.Arrays;

/**
 * @author qingke
 **/
public class GeneratorRunner {

    public static void main(String[] args) {
        MybatisGenerator generator = new MybatisGenerator();
        generator.setUrl("jdbc:mysql://120.26.19.226:3306/sxyx_test?connectionTimeZone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&useSSL=false");
        generator.setUsername("sy_dev");
        generator.setPassword("u1Cmugxff^7YP6gA@Gldmx");
        generator.setAuthor("xiatian");
        generator.setProjectPath(".");
        generator.setParentPackageName("com.zlx.mall.base");
        generator.setServiceFileOverride(false);

//        generator.parseMySqlWorkBenchShortNames("`basic_app`, `basic_app_channel`, `basic_app_channel_check`, `basic_app_image`, `basic_app_module`, `basic_app_upgrade`, `sc_console_menu`, `basic_console_operator`, `sc_console_operator_role`, `sc_console_role`, `sc_console_role_menu`, `basic_http_trace_log`, `basic_pay_channel`, `basic_pay_payment_order`, `basic_quartz_job`, `basic_quartz_job_log`, `basic_resource`, `basic_resource_log`, `basic_storage_bucket`, `basic_storage_bucket_object`, `basic_storage_property`, `basic_user`, `basic_user_coin_account`, `basic_user_coin_account_log`, `basic_user_feedback`, `biz_video_recharge_product`, `biz_video_series`, `biz_video_series_episode`, `biz_video_user_recharge_order`, `biz_video_user_series`, `biz_video_user_series_favorite`, `biz_video_user_series_history`, `biz_video_user_series_like`, `biz_video_user_series_order`");
        generator.setIncludes(Arrays.asList("sc_goods_order"));
        generator.start();
    }
}
